import 'package:shared_preferences/shared_preferences.dart';


const String USERDATAKEY = 'userModel';

///存储用户信息
void storeUserDataWithSting(String data) async{
   SharedPreferences prefs = await SharedPreferences.getInstance();
   await prefs.setString(USERDATAKEY, data);
}

///获取用户信息
Future getUserData() async{
   SharedPreferences prefs = await SharedPreferences.getInstance();
   return  await prefs.getString(USERDATAKEY);
}